	<!DOCTYPE html>
	<html>
	<head lang="en">
	  <meta charset="UTF-8">
	  <title>Login Page | Amaze UI Example</title>
	  <meta http-equiv="X-UA-Compatible" content="IE=edge">
	  <meta name="viewport" content="width=device-width, initial-scale=1">
	  <meta name="format-detection" content="telephone=no">
	  <meta name="renderer" content="webkit">
	  <meta http-equiv="Cache-Control" content="no-siteapp" />
	  <link rel="stylesheet" href="../AmazeUI/assets/css/amazeui.css"/>
	  <style>
		.header {
		  text-align: center;
		}
		.header h1 {
		  font-size: 200%;
		  color: #333;
		  margin-top: 30px;
		}
		.header p {
		  font-size: 14px;
		}
	  </style>
	</head>
	<body>
	<div class="header">
	  <div class="am-g">
		<h1>登录</h1>
		<h1 style="color:red"><%= request.getAttribute("msg") == null ? "": request.getAttribute("msg") %></h1>
	  </div>
	  <hr />
	</div>
	<div class="am-g">
	  <div class="am-u-lg-6 am-u-md-8 am-u-sm-centered">
		<form method="post" class="am-form" action="login.action" novalidate="novalidate" >
		  <label for="text">用户名:</label>
		  <input type="text" name="uname" id="uname" value="<%= request.getParameter("uname") == null ? "":request.getParameter("uname")%>">
		  <br>
		  <label for="password">密码:</label>
		  <input type="password" name="password" id="password" value="">
		  <br>
		  <label for="password">验证码:</label>
		  <input type="text" name="random" id="random" value="${param.random}">
		  <img id="randomimg" alt="zhaobudao" src="randomimg.action" />
		  <br>
		  <label for="remember-me">
			<input id="remember-me" type="checkbox">
			记住密码
		  </label>
		  <br />
		  <div class="am-cf">
			<input type="submit" name="" value="登 录" class="am-btn am-btn-primary am-btn-sm am-fl">
			<input type="submit" name="" value="忘记密码 ^_^? " class="am-btn am-btn-default am-btn-sm am-fr">
		  </div>
		  
		</form>
		<hr>
		<p>© 2014 AllMobilize, Inc. Licensed under MIT license.</p>
	  </div>
	</div>
	<script src="../js/jquery-1.10.1.js"></script>
	<script>
		$("form:eq(0)").submit(function(){
			if (!$("[name='uname']").val()) {
				alert('用户名必须输入')
				return false;
			} 
		})
		$("form:eq(0)").change(function(){
			alert(1)
		})
		
		$("#randomimg").on("click", ()=>{
			$("#randomimg").attr("src", "randomimg.action" + "?" + new Date().getTime());
		})

	</script>
	</body>
	</html>
	